package press.bolin.game;

import java.awt.*;

public class Background extends GameObject {

    public Background(GameFrame gameFrame) {
        super(gameFrame);
        // 背景图
        setImg("img/Map.jpg");
    }

    @Override
    public Rectangle getRec() {
        return null;
    }

    public void paintSelf(Graphics g) {
        g.drawImage(getImg(), 0, 0, null);
    }

}
